#pragma once

#include "windows.h"
#include "assert.h"

template<typename T>
void SafeDelete(T*& p)
{
	if (p)
	{
		delete p;
		p = NULL;
	}

	return;
}

template<typename T>
void SafeDeleteArray(T*& p)
{
	if (p)
	{
		delete[] p;
		p = NULL;
	}

	return;
}
